Debugging commands and oneAPI vscode extension#5
Debugging commands and oneAPI vscode extension#5fedebenelli wants to merge 1 commit intoMatthAlex:masterfrom
Conversation
|
This looks cool! I'll play around with it a bit. You mean |
|
Sorry, I was not very specific. I meant that the project name on the { "name": "(gdb) Launch main program",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/vscode/bin/${workspaceFolderBasename}",That The launch file has different options, mainly:
|
|
This is amazing work. Overall works nicely, locally. LocallyManaged to build the project with
This installs Replacing "template" with "main", and Now Debugging works as well: Palette -> "Run and Debug" Some remarks.
HPC/ remote developmentThis is a big no-no in most cases. I'm both happy and sad that this wouldn't work without significant fiddling around. Some major problems is 1) running tasks on the frontend/login nodes, 2) for Intel finding the oneAPI root isn't easy (even with manually pointing it to it). it does try to grab Bottom line: it should fail(?). No running compute tasks on frontend/login nodes, though a few HPC systems let the users compile on those nodes (bad practice though; different architectures say hi!) DocumentationI've got some idea on how this works. Where should we make a few notes of it though? |
I've added launch options to debug programs and tests, and also the intel oneAPI as a recommended extension.
Note: to properly debug the
mainprogram, the folder of the project must have the same name as it is described in thefpm.tomlfile